package com.lxy.file.server;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.io.IOException;

/**
 * @Author lxy
 * @Date 2021/12/28 18:46
 * @Description
 */
public interface FileOperationService {
    int checkFileExistDB(String hashcode);
    Integer checkFileStatus(String hashcode, Integer fileTarLen);
    String getFileLocal(String hashcode);
    JSONObject uploadSlice(MultipartFile mf, String fileName, String seq, int currentSize, String hash, int fileTarSize) throws IOException;
}
